package com.ougy.reshop.service;

import java.util.List;
import java.util.Map;

import org.hibernate.criterion.DetachedCriteria;

import com.ougy.reshop.util.PaginationSupport;

public interface IBaseServices {
	Map getSession();
	void setSession(Map paramMap);
	
	PaginationSupport findPageByCriteria(
			DetachedCriteria paramDetachedCriteria);

	PaginationSupport findPageByCriteria(
			DetachedCriteria paramDetachedCriteria, int paramInt);

	PaginationSupport findPageByCriteria(
			DetachedCriteria paramDetachedCriteria, int paramInt1, int paramInt2);

	PaginationSupport findPageByIndex(
			DetachedCriteria paramDetachedCriteria, int paramInt1, int paramInt2);

	List findAllByCriteria(
			DetachedCriteria paramDetachedCriteria);

	int getCountByCriteria(
			DetachedCriteria paramDetachedCriteria);
}
